import '@/plugins/v14s';
import '@/common/index_logic_design.js';
import visualComponents from './indexMixin';

// 组件配置页面
// const ConfigUniaxialLine = () => import('./uniaxial-line/config/config-panel.vue');
// const ConfigUniaxialBar = () => import('./uniaxial-bar/config/config-panel.vue');
// const ConfigBiaxialLineBar = () => import('./biaxial-line-bar/config/config-panel.vue');
const ConfigBasicPie = () => import('./basic-pie/config/config-panel.vue');
// const ConfigSingleValue = () => import('./single-value/config/config-panel.vue');
// const ConfigMultiValueSingleLineWithIcon = () => import('./multi-value-single-line-with-icon/config/config-panel.vue');
// const ConfigMultiValue = () => import('./multi-value/config/config-panel.vue');
// const ConfigMultiValueTwoLineWithIcon = () => import('./multi-value-two-line-with-icon/config/config-panel.vue');
// const ConfigSingleHeaderPageTable = () => import('./page-table/config/config-panel.vue');
const ConfigSelect = () => import('./select/config/config-panel.vue');

const ConfigCharacters = () => import('./characters/config/config-panel.vue');

const ConfigFullyMechanizedNew=()=>import('./FullyMechanizedNew/config/config-panel.vue')
const ConfigTunnelling=()=>import('./Tunnelling/config/config-panel.vue')
const ConfigFullyMechanizedMining=()=>import('./FullyMechanizedMining/config/config-panel.vue')
const Configprogress=()=>import('./progress/config/config-panel.vue')
const ConfigvideoList=()=>import('./videoList/config/config-panel.vue')
const ConfigvideoPlayback=()=>import('./videoPlayback/config/config-panel.vue')

const ConfigStartStopCurve=()=>import('./StartStopCurve/config/config-panel.vue')
const ConfigOnDuty=()=>import('./OnDuty/config/config-panel.vue')
const ConfigAnnularChart=()=>import('./AnnularChart/config/config-panel.vue')

const ConfigPersonnelPositioning =()=>import('./PersonnelPositioning/config/config-panel.vue')
// const ConfigHoverText = () => import('./hover-text/config/config-panel.vue');
// const ConfigCommonXMultipleY = () => import('./common-x-multiple-y/config/config-panel.vue');
// const ConfigCardIndicatorForm = () => import('./card-indicator-form/config/config-panel.vue');

// const ConfigLayerSwitching3d = () => import('./layer-switching-3d/config/config-panel');
// const ConfigRemoteControlButton = () => import('./remote-control-button/config/config-panel');
// const ConfigStateSwitching = () => import('./state-switching/config/config-panel');
// const ConfigHaikanVideo = () => import('./haikan-video/config/config-panel');
// const ConfigSweetuiDemo = () => import('./sweetui-demo/config/config-panel.vue');


const config = {
  // [`config_${process.env.xvueNameSpace_}sweetui_demo`]: ConfigSweetuiDemo,
  // [`config_${process.env.xvueNameSpace_}uniaxial_line`]: ConfigUniaxialLine,
  // [`config_${process.env.xvueNameSpace_}uniaxial_bar`]: ConfigUniaxialBar,
  // [`config_${process.env.xvueNameSpace_}biaxial_line_bar`]: ConfigBiaxialLineBar,
  [`config_${process.env.xvueNameSpace_}basic_pie`]: ConfigBasicPie,
  // [`config_${process.env.xvueNameSpace_}single_value`]: ConfigSingleValue,
  // [`config_${process.env.xvueNameSpace_}multi_value_single_line_with_icon`]: ConfigMultiValueSingleLineWithIcon,
  // [`config_${process.env.xvueNameSpace_}multi_value`]: ConfigMultiValue,
  // [`config_${process.env.xvueNameSpace_}multi_value_two_line_with_icon`]: ConfigMultiValueTwoLineWithIcon,
  // [`config_${process.env.xvueNameSpace_}page_table`]: ConfigSingleHeaderPageTable,
  [`config_${process.env.xvueNameSpace_}select`]: ConfigSelect,
  
  [`config_${process.env.xvueNameSpace_}characters`]: ConfigCharacters,
  [`config_${process.env.xvueNameSpace_}FullyMechanizedNew`]: ConfigFullyMechanizedNew,
  [`config_${process.env.xvueNameSpace_}Tunnelling`]: ConfigTunnelling,
  [`config_${process.env.xvueNameSpace_}FullyMechanizedMining`]: ConfigFullyMechanizedMining,
  [`config_${process.env.xvueNameSpace_}progress`]: Configprogress,
  [`config_${process.env.xvueNameSpace_}videoList`]: ConfigvideoList,
  [`config_${process.env.xvueNameSpace_}videoPlayback`]: ConfigvideoPlayback,
  
  [`config_${process.env.xvueNameSpace_}StartStopCurve`]: ConfigStartStopCurve,
  [`config_${process.env.xvueNameSpace_}OnDuty`]: ConfigOnDuty,
  [`config_${process.env.xvueNameSpace_}AnnularChart`]: ConfigAnnularChart,
  [`config_${process.env.xvueNameSpace_}PersonnelPositioning`]: ConfigPersonnelPositioning,
  // [`config_${process.env.xvueNameSpace_}hover_text`]: ConfigHoverText,
  // [`config_${process.env.xvueNameSpace_}common_x_multiple_y`]: ConfigCommonXMultipleY,
  // [`config_${process.env.xvueNameSpace_}card_indicator_form`]: ConfigCardIndicatorForm,

  // [`config_${process.env.xvueNameSpace_}layer_switching_3d`]: ConfigLayerSwitching3d,
  // [`config_${process.env.xvueNameSpace_}remote_control_button`]: ConfigRemoteControlButton,
  // [`config_${process.env.xvueNameSpace_}state_switching`]: ConfigStateSwitching,
  // [`config_${process.env.xvueNameSpace_}haikan-video`]: ConfigHaikanVideo,
};

import stores from '@/store/index.js';

window[[`_${process.env.xvueNameSpace}`]] = {};
window[[`_${process.env.xvueNameSpace}`]].componets = visualComponents;
window[[`_${process.env.xvueNameSpace}`]].stores = { ...stores };
window[[`_${process.env.xvueNameSpace}`]].configs = config;

// 加载第三方js文件(aicc和海康)，如果环境上window._adoPremise.getCoalThirdJsKeyByAPIPromise不是undefined的话，就不需要放开这里，如果是undefined，则是需要伙伴的vapp在这里执行loadThirdJsFiles方法
// 如果不想通过这种调接口的方式，也可以自行导入，js文件附在了public文件夹中
// import { loadThirdJsFiles } from '../utils/script';
// loadThirdJsFiles();

export default visualComponents;
